package com.lyd.domin.es;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
@Document(indexName = "blog", type = "blog")
@Data
public class EsBlog implements Serializable {
    private String id;
    private String titlt;
    private String summary;
    private String content;

    protected EsBlog(){}

    public EsBlog(String id, String titlt, String summary, String content) {
        this.id = id;
        this.titlt = titlt;
        this.summary = summary;
        this.content = content;
    }
}
